<div id="categories">
    <h2><? __('Categories'); ?></h2>
    <?
    if(empty($categories)) { ?>
        <? __('No categories'); ?>
    <?
    } else {
        ?> <ul> <?
            foreach ($categories as $category ): ?>
        <li><? echo $html->link($category['Category']['name'],array('action'=>'view',$category['Category']['seo_link'])); ?>
		(<? __('articles'); ?>: <? echo count($category['Article']); ?>)</li>
            <? endforeach;
                ?> </ul> <?
            } ?>
</div>